package com.ea.eadp.nexus.test.pageDefinition.newconsole;

import org.openqa.selenium.WebDriver;

import com.ea.eadp.nexus.test.common.PageOperation;

public class ResendEmailPage extends ConsoleBasePage {

    private static String panelTwoPhase = "panel-twophase";
    private static String continueButtenId = "continueBtn";
    private static String popupWindowId = "modal";

    public ResendEmailPage(WebDriver driver) {
        super(driver, ResendEmailPage.class, panelTwoPhase);
    }

    public void clickFinish() {
        // PageOperation.WebDriverWait(driver, continueButtenId);
        // Assert.assertEquals(driver.findElement(By.id(continueButtenId)).getText(),
        // "Finish");
        sendControllerKey('A');
    }

    public void clickBack() {
        PageOperation.WebDriverWait(driver, popupWindowId);
        // Assert.assertEquals(driver.findElement(By.id(continueButtenId)).getText(),
        // "Back");
        sendControllerKey('B');
    }

}
